package com.hs.hlw.credit.system.business.service;

import com.hs.hlw.credit.system.business.dto.ResponseDto;

import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;

/**
 * SubmissionFormAttachmentService
 * @author zhb
 * @date 2018/11/28
 */
public interface SubmissionFormAttachmentService {
    /**
     * 下载附件
     * @param id
     * @return
     */
    void downloadAttachment(Integer id, HttpServletResponse response);

    /**
     * 排序上移
     * @param id
     * @return
     */
    ResponseDto moveUp(Integer id);

    /**
     * 排序下移
     * @param id
     * @return
     */
    ResponseDto moveDown(Integer id);

    /**
     * 删除附件
     * @param id
     * @return
     */
    ResponseDto delete(Integer id);

    /**
     * 附件列表
     * @param formId
     * @return
     */
    ResponseDto list(Integer formId);

    /**
     * 附件列表
     * @param formId
     * @param batchSubmissionExplain
     * @return
     */
    ResponseDto updateBatchSubmissionExplain(Integer formId, String batchSubmissionExplain);

    /**
     * 上传附件
     * @param formId
     * @param fileName
     * @param in
     * @return
     */
    ResponseDto uploadAttachment(Integer formId, String fileName, InputStream in);
}